import axiosserver from '../utils/request'

export function getMoods(params = {}) {
  return axiosserver({
    method: 'GET',
    url: '/mood',
    params,
  })
}

export function getMood(mid) {
  return axiosserver({
    method: 'GET',
    url: '/mood/' + mid,
  })
}

export function addMoodPage(params) {
  return axiosserver({
    method: 'POST',
    url: '/mood/add',
    data: params,
  })
}

export function expressMood(params) {
  return axiosserver({
    method: 'POST',
    url: '/mood/express',
    data: params,
  })
}

export function moodLike(params) {
  return axiosserver({
    method: 'POST',
    url: '/mood/like',
    data: params,
  })
}
